class PWNMontyHall extends Actor
	placeable;

//General setup variables
var() int prizeDoor;
var() int numberOfDoors;
var() bool hideMonty;
var() bool showedPrizeDoor;

//First choice
var() bool FirstChoiceDoor0;
var() bool FirstChoiceDoor1;
var() bool FirstChoiceDoor2;

//Final choice
var() bool FinalChoiceDoor0;
var() bool FinalChoiceDoor1;
var() bool FinalChoiceDoor2;




event PostBeginPlay()
{	
	super.PostBeginPlay();
	`log("test MH");
	SetHidden(hideMonty);
	prizeDoor = Rand(numberOfDoors);	
}

simulated private function PWNActorSandbox(string sMessage)
{
	GetALocalPlayerController().ClientMessage(sMessage);	
}

event Tick(float DeltaTime)
{	
	super.Tick(DeltaTime);
	if (!showedPrizeDoor)
	{
		`log("Prize door: " $prizeDoor);
		showedPrizeDoor=true;
	}
	//`log("Prize: " $prizeDoor);
}



DefaultProperties
{
	Begin Object Class=StaticMeshComponent Name=StaticMeshComponent0
    StaticMesh=StaticMesh'MyObjects.Meshes.MyStaticMesh1'
    End Object
	Components.Add(StaticMeshComponent0)


	prizeDoor = 1
	numberOfDoors = 3	
	hideMonty = true

	FirstChoiceDoor0=false
	FirstChoiceDoor1=false
	FirstChoiceDoor2=false

	FinalChoiceDoor0=false
	FinalChoiceDoor1=false
	FinalChoiceDoor2=false

	showedPrizeDoor=false

}
